package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 菜单管理
 * @author Wang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@ApiModel("菜单管理实体")
public class MenuEntity extends BaseEntity {

    /**
     * 菜单主键
     */
    @ApiModelProperty(value = "菜单主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long parentId;

    /**
     * 菜单名字
     */
    @ApiModelProperty(value = "菜单名字")
    private String name;

    /**
     * 菜单链接
     */
    @ApiModelProperty(value = "菜单链接")
    private String menuUrl;

    /**
     * 菜单等级
     */
    @ApiModelProperty(value = "菜单等级")
    private String menuLevel;

}
